/*
 * Copyright (C) 2004-2006  Autodesk, Inc.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of version 2.1 of the GNU Lesser
 * General Public License as published by the Free Software Foundation.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
#ifndef FdoWcsOvClassDefinition_H
#define FdoWcsOvClassDefinition_H

#ifdef _WIN32
#pragma once
#endif //_WIN32

#include <WCS/FdoWcsOvProvider.h>
#include <WCS/Override/FdoWcsOvRasterDefinition.h>

/// \brief
///  
/// The FdoWcsOvClassDefinition class defines mapping overrides for a 
/// WCS feature class that exposes WCS layers as an FDO class. The 
/// properties defined here will be used in the WCS Getap operation 
/// when querying data from the WCS server.
class FdoWcsOvClassDefinition : public FdoPhysicalClassMapping
{
    typedef FdoPhysicalClassMapping BaseType;

public:
    /// \brief
    /// Constructs a new empty WCS physical mapping class definition.
    /// 
    /// \return
    /// Returns the newly created FdoWcsOvClassDefinition instance.
    /// 
    FDOWCS_API static FdoWcsOvClassDefinition* Create();

    /// \brief
    /// Gets the physical overrides for a raster property definition.
    /// 
    /// \return
    /// Returns the raster definition. 
    /// 
    FDOWCS_API FdoWcsOvRasterDefinition* GetRasterDefinition();

    /// \brief
    /// Sets the physical overrides for a raster property definition.
    /// 
    /// \param rasterDefinition 
    /// Input raster definition
    /// 
    /// \return
    /// Returns nothing
    /// 
    FDOWCS_API void SetRasterDefinition(FdoWcsOvRasterDefinition* rasterDefinition);

    /// \brief
    /// Gets the fully qualified name of this element
    /// 
    /// \return
    /// Returns the qualified element name
    /// 
    FDOWCS_API virtual FdoStringP GetQualifiedName();

/// \cond DOXYGEN-IGNORE

    /// XML Serialization functions, not part of supported API.
    FDOWCS_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs);
    FDOWCS_API virtual FdoXmlSaxHandler* XmlStartElement(
        FdoXmlSaxContext* context, 
        FdoString* uri, 
        FdoString* name, 
        FdoString* qname, 
        FdoXmlAttributeCollection* atts
    );
    FDOWCS_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* context, FdoString* uri, FdoString* name, FdoString* qname);
    FDOWCS_API void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags );

protected:
    FDOWCS_API FdoWcsOvClassDefinition(void);
    FDOWCS_API virtual ~FdoWcsOvClassDefinition(void);
    void Dispose(void);

private:
    FdoWcsOvRasterDefinitionP m_rasterDefinition;

/// \endcond

};

/// \brief
///  FdoWcsOvClassDefinitionP is a FdoPtr on FdoWcsOvClassDefinition, provided for convenience. 
typedef FdoPtr<FdoWcsOvClassDefinition> FdoWcsOvClassDefinitionP;

#endif


